
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: event</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>event</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br>(built-in)</font></td></tr></table>
    <p><tt>The&nbsp;event&nbsp;module&nbsp;handles&nbsp;delayed&nbsp;function&nbsp;calls.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-interrupt_events_involving"><strong>interrupt_events_involving</strong></a>(...)</dt><dd><tt><a href="#-interrupt_events_involving">interrupt_events_involving</a>(thing)<br>
&nbsp;<br>
Interrupt&nbsp;all&nbsp;events&nbsp;involving&nbsp;a&nbsp;given&nbsp;object,&nbsp;room,&nbsp;or&nbsp;character.</tt></dd></dl>
 <dl><dt><a name="-start_event"><strong>start_event</strong></a>(...)</dt><dd><tt><a href="#-start_event">start_event</a>(owner,&nbsp;delay,&nbsp;event_func,&nbsp;data=None,&nbsp;arg='')<br>
&nbsp;<br>
Queue&nbsp;a&nbsp;new&nbsp;delayed&nbsp;event,&nbsp;to&nbsp;go&nbsp;off&nbsp;after&nbsp;delay&nbsp;seconds.&nbsp;Events&nbsp;are<br>
cancelled&nbsp;when&nbsp;their&nbsp;owner&nbsp;is&nbsp;extracted.&nbsp;Owners&nbsp;can&nbsp;be&nbsp;characters,&nbsp;<br>
objects,&nbsp;rooms,&nbsp;or&nbsp;None.&nbsp;The&nbsp;event&nbsp;function&nbsp;should&nbsp;take&nbsp;three&nbsp;arguments:<br>
the&nbsp;event&nbsp;owner,&nbsp;the&nbsp;event&nbsp;data,&nbsp;and&nbsp;the&nbsp;string&nbsp;argument.&nbsp;Data&nbsp;is&nbsp;an<br>
optional&nbsp;argument&nbsp;that&nbsp;can&nbsp;be&nbsp;of&nbsp;any&nbsp;type.&nbsp;Arg&nbsp;is&nbsp;an&nbsp;optional&nbsp;argument<br>
that&nbsp;must&nbsp;be&nbsp;a&nbsp;string.</tt></dd></dl>
 <dl><dt><a name="-start_update"><strong>start_update</strong></a>(...)</dt><dd><tt>Deprecated.&nbsp;For&nbsp;repeating&nbsp;events,&nbsp;use&nbsp;events&nbsp;that&nbsp;manually&nbsp;re-queue<br>
their&nbsp;selves.</tt></dd></dl>
</td></tr></table>
</body></html>